home *** CD-ROM | disk | FTP | other *** search
- From theseas!fs.Princeton.EDU!cek Thu, 18 Feb 93 01:29:30 EET
- Received: by kriton.UUCP (V1.16/Amiga)
- id AA00000; Thu, 18 Feb 93 01:29:30 EET
- Received: by theseas.ntua.gr with UUCP; Tue, 16 Feb 93 22:35:35 +0200
- Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
- id AA06306 (5.65c/FORTH-ICS-3.0-MHS-7.0); Tue, 16 Feb 1993 19:57:19 +0200
- Received: by mcsun.EU.net via EUnet
- id AA03390 (5.65b/CWI-2.206); Tue, 16 Feb 1993 18:54:30 +0100
- Received: from Princeton.EDU by relay2.UU.NET with SMTP
- (5.61/UUNET-internet-primary) id AA18025; Tue, 16 Feb 93 12:50:31 -0500
- Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.95/princeton)
- id AA28216; Tue, 16 Feb 93 12:48:01 -0500
- Received: by fs.Princeton.EDU (4.1/1.105)
- id AA23913; Tue, 16 Feb 93 12:47:59 EST
- Received: from faui45.informatik.uni-erlangen.de by fs.Princeton.EDU (4.1/1.105)
- id AA23817; Tue, 16 Feb 93 12:47:08 EST
- Received: from faui43.informatik.uni-erlangen.de by uni-erlangen.de with SMTP;
- id AA13271 (5.65c-5/7.3r-FAU); Tue, 16 Feb 1993 18:46:47 +0100
- Received: by immd4.informatik.uni-erlangen.de;
- id AA14074 (5.65c-5/7.3m-FAU); Tue, 16 Feb 1993 18:46:45 +0100
- Message-Id: <199302161746.AA14074@faui43.informatik.uni-erlangen.de>
- Date: Tue, 16 Feb 93 18:46:44 MET
- X-Mailer: ELM [version 2.3 PL11]
- Errors-To: Princeton.EDU!cek
- Remailed-Date: Tue Feb 16 12:47:14 EST 1993
- From: "Michael Schroeder (Inf4 - hiwi)" <immd4.informatik.uni-erlangen.de!mlschroe>
- To: cs.Princeton.EDU!rayshade-users
- Subject: x (Grid bug)
-
-
- Hello rayshade users,
-
- I have found a bug in the grid code. Reproduce by tracing the following
- scene:
-
- eyep 0 -10 0
- lookp 0 0 0
- fov 40
-
- light 1 directional 2 -1 3
-
- surface red
- diffuse .8 .3 .5
- ambient .8 .3 .5
- specular .8 .3 .5
- surface darkiron
- diffuse .4 .6 .8
- ambient .4 .6 .8
-
- grid 2 2 2
- box red -1.9 -0.1 -10 1.9 0.1 10
- sphere darkiron 1 0 0 0 scale 2 2 2
- end
-
- The Problem is that intersect is called with a mindist that is
- exactly on the surface of the primitives bounding box. Because
- of this the "largest" object in the grid may not be hit.
- Apply the patch appended to this mail to fix the problem.
-
- Michael.
- ---------------------------------------------------------------
- Michael Schroeder mlschroe@faui43.informatik.uni-erlangen.de
- main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}
-
-
- *** grid.c.orig Tue Feb 16 16:12:05 1993
- --- grid.c Tue Feb 16 18:16:48 1993
- ***************
- *** 207,213 ****
- if (list) {
- np = nXp;
- if (CheckVoxel(list,ray,raybounds,
- ! hitlist,counter,offset,maxdist))
- hit = TRUE;
- }
- x += stepX;
- --- 207,213 ----
- if (list) {
- np = nXp;
- if (CheckVoxel(list,ray,raybounds,
- ! hitlist,counter,mindist,maxdist))
- hit = TRUE;
- }
- x += stepX;
- ***************
- *** 222,228 ****
- if (list) {
- np = nZp;
- if (CheckVoxel(list,ray, raybounds,
- ! hitlist,counter,offset,maxdist))
- hit = TRUE;
- }
- z += stepZ;
- --- 222,228 ----
- if (list) {
- np = nZp;
- if (CheckVoxel(list,ray, raybounds,
- ! hitlist,counter,mindist,maxdist))
- hit = TRUE;
- }
- z += stepZ;
- ***************
- *** 237,243 ****
- if (list) {
- np = nYp;
- if (CheckVoxel(list,ray,raybounds,
- ! hitlist,counter,offset,maxdist))
- hit = TRUE;
- }
- y += stepY;
- --- 237,243 ----
- if (list) {
- np = nYp;
- if (CheckVoxel(list,ray,raybounds,
- ! hitlist,counter,mindist,maxdist))
- hit = TRUE;
- }
- y += stepY;
-
- ----------
- Administrivia: rayshade-request@cs.princeton.edu
- Mailing list: rayshade-users@cs.princeton.edu
-
-